'use strict'
var request = require('request-promise');
var $ = require('cheerio'); //爬虫框架
var express = require('express');
const weixin = express.Router();
//文件下载
var fs = require("fs");
var path = require("path");


//知乎数据接口
weixin.get('/index', async (req, res) => {
	const URI = 'https://mp.weixin.qq.com/s/43yN06UUcia-yWdJ50ghrw'
	let result = await request(URI) //异步请求网页
	res.send(result) //把data数据返回给前台})
})

weixin.get('*', (req, res) => {
	res.send('没有你输入的路由')
})
module.exports = weixin;
